package com.auto.autoapp.adapter

import android.widget.Button
import android.widget.TextView
import com.auto.autoapp.R
import com.auto.autoapp.model.CmdInfo
import com.chad.library.adapter.base.BaseQuickAdapter
import com.chad.library.adapter.base.viewholder.BaseViewHolder

class CmdAdapter : BaseQuickAdapter<CmdInfo, BaseViewHolder>(R.layout.item_cmd) {

    override fun convert(
        holder: BaseViewHolder,
        item: CmdInfo
    ) {
        val btn = holder.getView<TextView>(R.id.tv_cmd)
        btn.text = item.name
    }
}